<div>Hello</div><div>Hello</div>
<span>Hi</span><span>Hi</span>
<style>
    div {
        display: inline-block;
        /*display: block;*/
        /*display: inline;*/
        width: 100px;
        height: 100px;
        background-color: pink;
    }
    span {
        display: block;
        /*display: inline-block;*/
        width: 100px;
        height: 100px;
        background-color: skyblue;
    }
</style>